package com.itheima.service.impl;

import com.itheima.dao.BookDao;
import com.itheima.service.BookService;

/**
 * @Author 王加鑫
 * @Date 2021/7/21 21:17
 * @Since JDK 1.9
 */
public class BookServiceImpl implements BookService {

    private BookDao dao;

    //依赖注入(set方法注入)
    public void setDao(BookDao dao) {
        this.dao = dao;
    }

    @Override
    public void read() {
        dao.read();
        System.out.println("bookService read...");
    }
}
